package com.saas.tenant.config;

import org.springframework.jdbc.datasource.lookup.AbstractRoutingDataSource;

/**
 * @auther Jiang Tian
 * @date 2025/3/6
 * @apiNote
 **/
public class DynamicDataSource extends AbstractRoutingDataSource {
    @Override
    protected Object determineCurrentLookupKey() {
        return DataSourceContextHolder.getDataSource();
    }
}
